// ignore_for_file: file_names

import 'package:flutter/material.dart';

class MyApp5 extends StatelessWidget {
  const MyApp5({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        // 1.1 导航
        appBar: AppBar(
          title: const Text('Text组件'),
          backgroundColor: Colors.pink,
        ),
        // 1.2 主体内容
        body: Container(
            width: 300,
            height: 300,
            alignment: Alignment.center,
            color: Colors.blue,
            child: const Text(
              '     静夜思\n床前明月光\n疑似地上霜\n举头望明月\n低头思故乡',
              style: TextStyle(
                  // 首行缩进
                  // wordSpacing: 30,
                  fontSize: 30,
                  color: Colors.white,
                  fontWeight: FontWeight.bold,
                  fontStyle: FontStyle.italic,
                  decoration: TextDecoration.lineThrough,
                  decorationColor: Colors.red,
                  decorationStyle: TextDecorationStyle.wavy,
                  decorationThickness: 5),
            )));
  }
}
